#pragma once

#include<QString>
#include<QDataStream>
#include<QObject>

class Contact
{
	public:
		Contact();
		Contact(const QString& name , const QString& address);
		~Contact();


		bool operator ==(const Contact& other) const;

	QString name_;
	QString address_;
};

inline QDataStream&  operator<<(QDataStream& stream , const Contact& contact)
{
    return stream <<  contact.name_ << contact.address_;
}

inline QDataStream&  operator>>(QDataStream& stream  ,Contact& contact)
{
    return stream >> contact.name_ >> contact.address_;
}
